import { defHttp } from "@/utils/http";

// ERP 科室仓库药品 API
export const drugDeptApi = {
	// 获得科室仓库药品分页
	drugDeptList: async (params: any) => {
		return await defHttp.get({ url: `/whs/drug-dept/page`, params });
	},
	// 新增科室仓库药品
	drugDeptCreate: async (data: any) => {
		return await defHttp.post({ url: `/whs/drug-dept/create`, data });
	},

	// 修改科室仓库药品
	drugDeptUpdate: async (data: any) => {
		return await defHttp.put({ url: `/whs/drug-dept/update`, data });
	},

	// 删除科室仓库药品
	drugDeptDelete: async (id: number) => {
		return await defHttp.delete({ url: `/whs/drug-dept/delete?id=` + id });
	}
};
